from django.db import models
from django.db.models import IntegerField,ForeignKey,DateTimeField,CASCADE
from apps.vadmin.op_drf.models import CoreModel

class KitsLicenses(models.Model):
    kit  = ForeignKey(to="assets.Kits",null=False,db_constraint=False,on_delete=CASCADE,verbose_name="套件Id")
    license = ForeignKey(to="assets.Licenses",null=False,db_constraint=False,on_delete=CASCADE,verbose_name="许可证Id")
    quantity = IntegerField(null=False,default=0,verbose_name="数量")
    create_datetime = DateTimeField(null=True,verbose_name="创建时间")
    update_datetime = DateTimeField(null=True,verbose_name="修改时间")